﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SanctusSoftware.Music.ChordSheetEditor.Client;
using Microsoft.Office.Interop.Word;

namespace SanctusSoftware.Music.ChordSheetEditor.Word
{
  public class WordWord : IWord
  {

    #region Fields

    private readonly Range _Word;

    #endregion

    #region Properties

    public string Text
    {
      get
      {
        return _Word.Text;
      }
      set
      {
        _Word.Text = value;
      }
    }

    public bool IsSpelledCorrectly
    {
      get { return (_Word.SpellingErrors == null || _Word.SpellingErrors.Count == 0); }
    }

    #endregion

    #region Constructor

    public WordWord(Range word)
    {
      _Word = word;
      
    }

    #endregion





  }
}
